// Copyright (c)  MOKEYISH. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

using System;

namespace NSQL.Expressions.Functions
{
    /// <summary>
    /// variance() function returns the population standard variance of an expression.
    /// </summary>
    public class VarianceFunction : BaseExpression, IVarianceFunction
    {
        public IValueExpression Expr { get; set; }
        public AggregateType Type => throw new NotSupportedException();
        public VarianceFunction(IValueExpression expression) => Expr = expression;
        
        public override T Accept<T>(IExpressionVisitor<T> visitor) => visitor.Visit(this);
    }
}